package com.pro.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * ClassName:JsDept
 * Package:com.pro.pojo
 * Description: 后台部门表
 *
 * @Date:2022/1/19 下午 8:56
 * @Author: WYH
 */
public class JsDept implements Serializable{
    private Integer id; //主键id
    private String deptName; //部门名称
    private String deptDescirbe; //部门描述
    private Integer parentId; //上级部门id
    private String createId; //创建人
    private String createDate; //创建时间
    private String updateId; //更新人
    private String updateDate; //更新时间
    private String status; //状态，1启用，2未启用
    private String trueName; //用户名称

    public JsDept() {
    }

    public JsDept(Integer id, String deptName, String deptDescirbe, Integer parentId, String createId, String createDate, String updateId, String updateDate, String status, String trueName) {
        this.id = id;
        this.deptName = deptName;
        this.deptDescirbe = deptDescirbe;
        this.parentId = parentId;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.status = status;
        this.trueName = trueName;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setDeptDescirbe(String deptDescirbe) {
        this.deptDescirbe = deptDescirbe;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public Integer getId() {
        return id;
    }

    public String getDeptName() {
        return deptName;
    }

    public String getDeptDescirbe() {
        return deptDescirbe;
    }

    public Integer getParentId() {
        return parentId;
    }

    public String getCreateId() {
        return createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public String getStatus() {
        return status;
    }

    public String getTrueName() {
        return trueName;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JsDept jsDept = (JsDept) o;
        return Objects.equals(id, jsDept.id) &&
                Objects.equals(deptName, jsDept.deptName) &&
                Objects.equals(deptDescirbe, jsDept.deptDescirbe) &&
                Objects.equals(parentId, jsDept.parentId) &&
                Objects.equals(createId, jsDept.createId) &&
                Objects.equals(createDate, jsDept.createDate) &&
                Objects.equals(updateId, jsDept.updateId) &&
                Objects.equals(updateDate, jsDept.updateDate) &&
                Objects.equals(status, jsDept.status) &&
                Objects.equals(trueName, jsDept.trueName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, deptName, deptDescirbe, parentId, createId, createDate, updateId, updateDate, status, trueName);
    }

    @Override
    public String toString() {
        return "JsDept{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", deptDescirbe='" + deptDescirbe + '\'' +
                ", parentId=" + parentId +
                ", createId='" + createId + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateId='" + updateId + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", status='" + status + '\'' +
                ", trueName='" + trueName + '\'' +
                '}';
    }
}
